{block:init}{/block:init}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
{php}
$this->pmeta(); devTopic::fmtCfgs($this->vars);
eimp('initJs','jquery;bootstrap;comm');
eimp('initCss','bootstrap,stpub;comm;topic');
{/php}
</head>

<body>

{inc:"topic/_index/_head"}

<div class="topic-header">
    <h1 class="topic-title">{title($title,96,$this->vars)}</h1>
    <p class="topic-post-meta">
        {stime($atime,min)} 
        点击<i id="jsid_field_{=$this->mod}:{=$did}:click">{=$click}<!--,add1--></i>次
        &nbsp;模板:{=$this->tplname}
    </p>
</div>

<div class="row">

    <div class="col-sm-9 topic-main">

        <div class="topic-post">
            {html($detail)}
        </div>

        {block:infos}
        {/block:infos}

        <nav>
            <ul class="pager">
              <li><a href="{surl(topic)}">&lt;Topic</a></li>
            </ul>
        </nav>

    </div><!-- /.blog-main -->

    <div class="col-sm-3 topic-sidebar">

        <?php
        include(DIR_CODE.'/lang/pubs/fcfgs.php');
        ?>
        <?php foreach($fcfgs as $key=>$cfg){ $icfg=$$key; if(!empty($$key)){ ?>
        <div class="sidebar-module">
            <h4>配置:{=$key}-{=$cfg['title']}</h4>
            <textarea style='width:100%'; rows='5' wrap='off' />{=$icfg}</textarea>
        </div>
        <?php } } ?>

    </div><!-- /.blog-sidebar -->
</div><!-- /.row -->

{inc:"topic/_index/_foot"}

</body>
</html>
